package org.liu.knowledge.embedding;

import dev.langchain4j.data.embedding.Embedding;
import dev.langchain4j.model.ollama.OllamaEmbeddingModel;
import dev.langchain4j.model.output.Response;

public class EmbeddingExample {
    public static void main(String[] args) {
        OllamaEmbeddingModel embedding = OllamaEmbeddingModel.builder()
                .baseUrl("http://localhost:11434/")
                .modelName("zyw0605688/gte-large-zh")
                .logRequests(true)
                .logResponses(true)
                .build();

        Response<Embedding> embed = embedding.embed("还有什么其他问题或需要帮助的吗？");

    }
}
